const TICKET_TYPE = {
  DISPATCH: '发车申请',
  RETURN: '退车申请',
};


const ORDER_STATUS = {
  CREATED: '已创建',
  SIGNED: '已签约',
  PAY_DEPOSIT: '已付押金',
  DISPATCHED: '已发车',
  INSPECTED: '已验车',
  PAY_RENT: '已付租金',
  RETURNED: '已还车',
  PAY_FINE: '已付罚款',
  PAY_SERVICE_CHARGE: '已付服务费',
  PAY_DEPOSIT_BACK: '已还押金',
  CANCELED: '已取消',
};

const TICKET_STATUS = {
  PROCESSED: '已处理',
};


const DATE_FORMAT = 'YYYY-MM-DD hh:mm:ss';

const DATE_FUZZY_FORMAT = 'YYYY-MM-DD';


module.exports = {
  tableEnum: {
    // ========================应用表============================
    insurance: 'insurance',
    maintenance: 'maintenance',
    contract: 'contract',
    customer: 'customer',
    order: 'order',
    ticket: 'ticket',
    payment: 'payment',
    // ========================高级 View============================
  },
  TICKET_TYPE,
  ORDER_STATUS,
  TICKET_STATUS,
  DATE_FORMAT,
  DATE_FUZZY_FORMAT
};